//
//  QLNetWorkCenter.h
//  Advertisement
//
//  Created by mac on 16/5/3.
//  Copyright © 2016年 Appcoda. All rights reserved.
//
//#define __weekSelf__        __weak __typeof(self)weekSelf = self;

#import <Foundation/Foundation.h>
#import "AFURLRequestSerialization.h"
#import "AFURLResponseSerialization.h"
#define QL_Nonatomic_Copy       @property (nonatomic, copy)
#define QL_Nonatomic_Copy       @property (nonatomic, copy)
#define QL_Nonatomic_Strong     @property (nonatomic, strong)
#define QL_Nonatomic_Assign     @property (nonatomic, assign)




@class QLNetWorkCenter;
typedef void(^QLNetWorkCenterSuccessBlock)(QLNetWorkCenter *request);
typedef void(^QLNetWorkCenterFailedBlock) (QLNetWorkCenter *request);

@protocol QLNetWorkCenterDelegate <NSObject>
@optional
- (void)qlRequestFinished:(QLNetWorkCenter*)request;
- (void)qlRequestFailed:(QLNetWorkCenter*)request;
@end









@interface QLNetWorkCenter : NSObject

QL_Nonatomic_Assign id<QLNetWorkCenterDelegate> delegate;


QL_Nonatomic_Strong id resultJSON;

QL_Nonatomic_Strong NSMutableDictionary *requestParameters;
QL_Nonatomic_Strong NSDictionary *resultDictionary;

QL_Nonatomic_Strong id <AFURLResponseSerialization> responseSerializer;

@property (nonatomic,copy)NSString * netURLString;

- (NSString *)interfaceChain;
- (NSString *)baseServerURL;
- (void)handleUrlStringBeforSendRequest;
- (void)startRequestByParameters;
- (NSString *)postUrl;
- (void)joinBaseURLandInterface;
- (void)heChengUrl;
- (void)handleFinishDataBeforInvoke:(QLNetWorkCenter *)request;




@end
